﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LC01_Reflect
{
    public class Person
    {
        public string Name { get; set; }

        public int age;

        public void Say(string val = "")
        {
            Console.WriteLine("Say" + val);
        }
        private void PSay(string val = "")
        {
            Console.WriteLine("PSay" + val);
        }
        public static void SSay(string val = "")
        {
            Console.WriteLine("SSay" + val);
        }
        public bool SayRef(ref string val)
        {
            val = "2";
            Console.WriteLine("Say" + val);
            return true;
        }
        private static Person instance;
        public static Person Instance()
        {
            if (instance == null)
                instance = new Person();
            return instance;
        }
    }
}
